import request from '@/utils/request'

// 查询租约管理列表
export function listLeasemanagement(query) {
  return request({
    url: '/leasemanagement/leasemanagement/list',
    method: 'get',
    params: query
  })
}

// 查询租约管理详细
export function getLeasemanagement(leaseId) {
  return request({
    url: '/leasemanagement/leasemanagement/' + leaseId,
    method: 'get'
  })
}

// 新增租约管理
export function addLeasemanagement(data) {
  return request({
    url: '/leasemanagement/leasemanagement',
    method: 'post',
    data: data
  })
}

// 修改租约管理
export function updateLeasemanagement(data) {
  return request({
    url: '/leasemanagement/leasemanagement',
    method: 'put',
    data: data
  })
}

// 删除租约管理
export function delLeasemanagement(leaseId) {
  return request({
    url: '/leasemanagement/leasemanagement/' + leaseId,
    method: 'delete'
  })
}
